<?php

namespace app\test1\controller;

use app\test1\allocations\UserInfo;

class Index
{
    public function index()
    {
        return '<div style="color:red">你好吗傻逼?</div>';
    }

    public function hello($name = 'ThinkPHP5')
    {
        return '你好呀,傻逼' . $name;
    }

    public function getUser()
    {
        return app(UserInfo::class)->getUser();
    }
}
